package top.milkbox;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;

@SpringBootApplication
// 让session自动存入redis中并且生效时间为30分钟
@EnableRedisHttpSession(maxInactiveIntervalInSeconds = 1800)
// 配置mapper扫描
@MapperScan("top.milkbox.mapper")
public class MilkboxApplication {

    public static void main(String[] args) {
        SpringApplication.run(MilkboxApplication.class, args);
    }

}
